package blackstar.plugin.ui.vo;

public class DetailStatItem
{
	private String className;
	private String methodName;
	private long totalInvokes;
	private double totalTime;
	private String percent;

	public String getClassSimpeName()
	{
		int index = className.lastIndexOf('.');
		if (index > 0)
		{
			return className.substring(index + 1);
		}
		else
		{
			return className;
		}
	}
	
	public String getClassName()
	{
		return className;
	}

	public void setClassName(String className)
	{
		this.className = className;
	}

	public String getMethodName()
	{
		return methodName;
	}

	public void setMethodName(String methodName)
	{
		this.methodName = methodName;
	}

	public long getTotalInvokes()
	{
		return totalInvokes;
	}

	public void setTotalInvokes(long totalInvokes)
	{
		this.totalInvokes = totalInvokes;
	}

	public double getTotalTime()
	{
		return totalTime;
	}

	public void setTotalTime(double totalTime)
	{
		this.totalTime = totalTime;
	}

	public String getPercent()
	{
		return percent;
	}

	public void setPercent(String percent)
	{
		this.percent = percent;
	}
}
